<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc 业务日志 添加
@author WeiXiaoJin
@since 2020-01-26 09:30:11
-->
	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<!-- /.col-->
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">
								<form class="form-horizontal" id="addForm">
<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">业务描述</label>
	<div class="col-md-9">
				<input class="form-control" id="businessDesc" type="text" name="businessDesc" placeholder="业务描述">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">业务参数</label>
	<div class="col-md-9">
				<input class="form-control" id="businessParams" type="text" name="businessParams" placeholder="业务参数">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">业务参数</label>
	<div class="col-md-9">
				<input class="form-control" id="businessKeyWork" type="text" name="businessKeyWork" placeholder="业务参数">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">业务状态</label>
	<div class="col-md-9">
				<input class="form-control" id="businessStatus" type="text" name="businessStatus" placeholder="业务状态">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">返回值</label>
	<div class="col-md-9">
				<input class="form-control" id="returnValue" type="text" name="returnValue" placeholder="返回值">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">操作类型</label>
	<div class="col-md-9">
				<input class="form-control" id="operationType" type="text" name="operationType" placeholder="操作类型">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">before_balance</label>
	<div class="col-md-9">
				<input class="form-control" id="beforeBalance" type="text" name="beforeBalance" placeholder="before_balance">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">操作后账户余额</label>
	<div class="col-md-9">
				<input class="form-control" id="afterBalance" type="text" name="afterBalance" placeholder="操作后账户余额">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">操作时间</label>
	<div class="col-md-9">
				<input class="form-control" id="businessTime" type="text" name="businessTime" placeholder="操作时间">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">操作员</label>
	<div class="col-md-9">
				<input class="form-control" id="operationId" type="text" name="operationId" placeholder="操作员">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">业务代码</label>
	<div class="col-md-9">
				<input class="form-control" id="businessCode" type="text" name="businessCode" placeholder="业务代码">
			</div>
</div>
																			</form>
							</div>
						</div>
					</div>
					<!-- /.col-->
				</div>
			</div>
		</div>

	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		var addForm = $("#addForm") ; 
		$(function(){
			addForm.validate({
				ignore: [],  
				rules: {
businessDesc: {required:true}
,businessParams: {required:true}
,businessKeyWork: {required:true}
,businessStatus: {required:true}
,returnValue: {required:true}
,operationType: {required:true}
,beforeBalance: {required:true}
,afterBalance: {required:true}
,businessTime: {required:true,number:true}
,operationId: {required:true}
,businessCode: {required:true}
				}
			});
		}) ;

		function submitHandler() {
			var result = $.validate.form("addForm");
			if(result){	
				var saveUrl = ctx+"base/logger/logBusiness/save" ;
				$.operate.save(saveUrl , addForm.serialize());
			}
	    }
	</script>

</body>
</html>


